package com.change.study.view;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.servlet.view.freemarker.FreeMarkerView;

import freemarker.template.Configuration;

public class MyFreeMarkerView extends FreeMarkerView {
	Logger logger=LoggerFactory.getLogger("ada");
	/**
	 * Return the FreeMarker configuration used by this view.
	 */
	protected Configuration getConfiguration() {
		Configuration config=super.getConfiguration();
		if(config!=null){
			logger.info("配置有东西");
			config.setTagSyntax(Configuration.SQUARE_BRACKET_TAG_SYNTAX);
		}else{
			
			logger.info("配置没有东西");
		}
		return config;
	}
	
}
